#!/bin/bash

echo -e "aaa\naabb\nbazinga\n">text1.txt
echo -e "aaa\naabb\nknockknock\n">text2.txt

cat &(sort -u text1.txt text2.txt)>>textsum.txt
(comm -3 <(sort text1.txt) <(sort text2.txt))>>textdiff.txt

exit 0
